<h4><?php echo $pageTitle?></h4>
<?php
if($showBrowse)
{
?>
	<a href="<?php echo common::url('query.php?sql='.rawurlencode("SELECT * FROM $viewName"))?>"><?php echo lang('Browse this view')?></a>
<?php
}
?>
<form action="<?php echo common::url('view.php?action='.$formAction.'&view='.rawurlencode($viewName))?>" method="post" name="viewPropertiesForm">
<table border="0">
<tr>
	<td><?php echo lang('Name')?></td>
	<td><input type="text" name="viewName" value="<?php echo htmlspecialchars($viewProperties['name'])?>" /></td>
</tr>
<tr>
	<td valign="top"><?php echo lang('SQL')?></td>
	<td><textarea cols="60" rows="10" name="viewSql"><?php echo htmlspecialchars($viewProperties['sql'])?></textarea></td>
</tr>
<tr>
	<td>&nbsp;</td>
	<td><input type="checkbox" name="viewTemporary" value="1" id="viewTemporary" <?php echo ($viewProperties['temporary'] ? 'checked="checked"' : '')?> /><label for="viewTemporary"><?php echo lang('Temporary')?></label></td>
</tr>
<tr>
	<td colspan="2" align="right"><input type="submit" name="" value="<?php echo $submitValue?>" /></td>
</tr>
</table>
</form>